HaloPesa Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/1d'
-F fullname=Hussein \
-F 'file=@HaloPesa_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'
Response Sample
- Status OK Response
200 OK
[
{
"name": "PHILLEMON JASSONY",
"account": "255613029007",
"contacts": "255613029007",
"company": "Halotel",
"start_date": "2023-12-17T19:50:19",
"end_date": "2024-03-11T00:01:54",
"no_of_transactions": 137,
"in_types": [
"bank_to_wallet",
"agent_deposit",
"p2p_received",
"other"
],
"out_types": [
"luku",
"p2p_sent",
"wallet_to_bank",
"bundles",
"agent_withdrawal",
"bill_payment",
"merchant_payment",
"other"
],
"loan_services": [],
"pars_3d": {
"agent_activity": {
"debit": [
"agent_withdrawal"
],
"credit": [
"agent_deposit"
]
},
"peer_to_peer_activity": {
"debit": [
"p2p_sent"
],
"credit": [
"p2p_received"
]
},
"bank_activity": {
"debit": [
"wallet_to_bank"
],
"credit": [
"bank_to_wallet"
]
},
"loan_activity": {
"debit": []
},
"bills_activity": {
"debit": [
"bill_payment",
"luku",
"gepg",
"merchant_payment"
]
},
"other": {
"debit": [
"other"
],
"credit": [
"other"
]
}
},
"channels": {}
},
{
"initial_info": {
"account_number": "255613029007",
"first_date": "2023-12-17 19:50:19",
"last_date": "2024-03-11 00:01:54",
"total_days": 85,
"total_active_days": 40
},
"customer_profile": {
"wallet_balance": 3610.0,
"total_turnover": 6251092.0,
"total_transactions": 137
},
"cash_flow_summary": {
"total_turnover": 6251092.0,
"total_cashin": 3183756.0,
"total_cashout": 3067336.0,
"cashin_to_turnover_percentage": 50.93,
"cashin_transactions": 39,
"cashin_to_total_trans_percentage": 28.47,
"cashout_to_turnover_percentage": 49.07,
"cashout_transactions": 98,
"cashout_to_total_trans_percentage": 71.53
},
"bank_to_wallet": {
"total_bank_to_wallet_amount": 504000.0,
"maximum_bank_to_wallet_amount": 120000.0,
"no_of_bank_to_wallet_transactions": 13,
"average_bank_to_wallet_amount": 38769.23,
"last_day_paid_bank_to_wallet": "2024-01-26 23:09:00",
"last_bank_to_wallet_amount": 14000.0
},
"agent_deposit": {
"total_agent_deposit_amount": 110000.0,
"maximum_agent_deposit_amount": 110000.0,
"no_of_agent_deposit_transactions": 1,
"average_agent_deposit_amount": 110000.0,
"last_day_paid_agent_deposit": "2024-01-17 12:28:54",
"last_agent_deposit_amount": 110000.0
},
"p2p_received": {
"total_p2p_received_amount": 2561006.0,
"maximum_p2p_received_amount": 800000.0,
"no_of_p2p_received_transactions": 24,
"average_p2p_received_amount": 106708.58,
"last_day_paid_p2p_received": "2024-03-09 13:33:04",
"last_p2p_received_amount": 500000.0
},
"other": {
"total_other_amount": 5000.0,
"maximum_other_amount": 5000.0,
"no_of_other_transactions": 1,
"average_other_amount": 5000.0,
"last_day_paid_other": "2024-01-08 20:13:29",
"last_other_amount": 5000.0
},
"luku": {
"total_luku_amount": 34500.0,
"maximum_luku_amount": 20000.0,
"no_of_luku_transactions": 4,
"average_luku_amount": 8625.0,
"last_day_paid_luku": "2024-01-24 12:38:33",
"last_luku_amount": 6500.0
},
"p2p_sent": {
"total_p2p_sent_amount": 1038168.0,
"maximum_p2p_sent_amount": 104350.0,
"no_of_p2p_sent_transactions": 48,
"average_p2p_sent_amount": 21628.5,
"last_day_paid_p2p_sent": "2024-03-11 00:01:54",
"last_p2p_sent_amount": 101350.0
},
"wallet_to_bank": {
"total_wallet_to_bank_amount": 982000.0,
"maximum_wallet_to_bank_amount": 444000.0,
"no_of_wallet_to_bank_transactions": 5,
"average_wallet_to_bank_amount": 196400.0,
"last_day_paid_wallet_to_bank": "2024-03-10 09:08:05",
"last_wallet_to_bank_amount": 384000.0
},
"bundles": {
"total_bundles_amount": 134500.0,
"maximum_bundles_amount": 10000.0,
"no_of_bundles_transactions": 25,
"average_bundles_amount": 5380.0,
"last_day_paid_bundles": "2024-03-10 00:12:17",
"last_bundles_amount": 5000.0
},
"agent_withdrawal": {
"total_agent_withdrawal_amount": 635918.0,
"maximum_agent_withdrawal_amount": 336338.0,
"no_of_agent_withdrawal_transactions": 11,
"average_agent_withdrawal_amount": 57810.73,
"last_day_paid_agent_withdrawal": "2024-01-23 15:08:05",
"last_agent_withdrawal_amount": 34151.0
},
"bill_payment": {
"total_bill_payment_amount": 0.0,
"maximum_bill_payment_amount": 0.0,
"no_of_bill_payment_transactions": 0,
"average_bill_payment_amount": 0.0,
"last_day_paid_bill_payment": "N/A",
"last_bill_payment_amount": 0.0
},
"merchant_payment": {
"total_merchant_payment_amount": 246000.0,
"maximum_merchant_payment_amount": 66000.0,
"no_of_merchant_payment_transactions": 5,
"average_merchant_payment_amount": 49200.0,
"last_day_paid_merchant_payment": "2024-01-21 21:00:00",
"last_merchant_payment_amount": 66000.0
},
"transaction_channels": {},
"statement_check": {
"isvalid": true
}
}
]
- Bad Request Response
400 Bad Request
message: "<The specific error message>"
- Unprocessable Entity
422 Unprocessable file entity
message: "Unprocessable File Entity"
- Rate Limit Error
429 Rate Limited Error
message: "Rate limited resource",
nexttime:"19876543"
- Internal Server Error
500 Internal Server Error
message: "An Internal server error",
Rate Limiting!
Rate Limited Resource Continous Access will lead to blocking an account.